package com.mcf.xiaolinju.service.impl;

import com.mcf.xiaolinju.entity.Code;
import com.mcf.xiaolinju.mapper.CodeMapper;
import com.mcf.xiaolinju.service.ICodeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class CodeServiceImpl extends ServiceImpl<CodeMapper, Code> implements ICodeService {
    @Resource
    CodeMapper codeMapper;
    //得到最新的验证码
    public String selectByMaxId (){
        return codeMapper.selectByMaxId();
    }

}
